package com.thinkgem.jeesite.modules.devmng.service;

import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.devmng.dao.DeviceManualDao;
import com.thinkgem.jeesite.modules.devmng.entity.DeviceManual;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true)
public class DeviceManualService extends CrudService<DeviceManualDao,DeviceManual>{

    @Transactional(readOnly = false)
    public void save(DeviceManual entity) {
        super.save(entity);
    }


    @Transactional(readOnly = false)
    public List<DeviceManual> findListByDeviceMainId (String deviceMainId) {
        return dao.findListByDeviceMainId(deviceMainId);
    }

    @Override
    public DeviceManual get(String id) {
        return super.get(id);
    }

    @Transactional(readOnly = false)
    public void delete(DeviceManual deviceManual) {
        super.delete(deviceManual);
    }

}
